﻿namespace WayneGameSolution.Communicate
{
    using System;
    using System.Collections.Generic;
    using System.Xml.Linq;
 

    public abstract class LinkListener : ILinkListener
    {
        protected Dictionary<string, string> _paramsDic;

        public LinkListener(Dictionary<string, string> paramsDic)
        {
    
            this._paramsDic = paramsDic;
            DefaultCodec = Unity.DefaultContainer.Resolve<ICodec>();
            DefaultCrypt = Unity.DefaultContainer.Resolve<ICrypt>();
            
        }

        public IDictionary<string, string> paramsDic
        {
            get;
            protected set;
        }



        #region ILinkListener Members


        abstract public void Start();


        abstract public void Stop();


        #endregion



        #region ILinkListener Members


        public ICodec DefaultCodec
        {
            get;
            private set;
        }

        public ICrypt DefaultCrypt
        {
            get;
            private set;
        }

        #endregion
    }
}

